package com.service.calculate;

import com.service.bean.Road_Data_Roller_1_x;
import com.service.bean.Road_Data;
import com.service.bean.Road_GpsSignal;
import com.service.bean.Road_GpsSignal_Roller;
/**
 * 压路机基础值计算
 * @author sxc
 *
 */
public class Road_BasalCalculator_Roller extends Road_BasalCalculator{
	
	/**
	 * 基础值计算
	 * @param data
	 * @param signal
	 */
	public void calculate(Road_Data data,Road_GpsSignal signal){
		super.calculate(data,signal);		
		Road_GpsSignal_Roller signal_Roller = (Road_GpsSignal_Roller)signal;
		Road_Data_Roller_1_x data_Roller = (Road_Data_Roller_1_x)data;
		
		signal.speed = Double.parseDouble(Integer.parseInt(data.speed,16)+"");
		signal_Roller.rollerTemp = Integer.parseInt(data_Roller.rollerTemp,16);
		signal_Roller.thickness = Integer.parseInt(data_Roller.thickness,16)/ 10.00;
		signal_Roller.evenness = Integer.parseInt(data_Roller.evenness,16);
		signal_Roller.compactionDegree = Integer.parseInt(data_Roller.compactionDegree,16);
		signal_Roller.oilStatus = Integer.parseInt(data_Roller.oilStatus,16);
		signal.oilHeight = Integer.parseInt(data.oilInt, 16)+(Integer.parseInt(data.oilDec, 16) / 100.00);
	}
	
}
